<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<style>
	.errorMessage {border: 2px solid red;}
</style>

	<h2>바인딩</h2>
	<form:label path="user.name" cssErrorClass="errorMessage">이름</form:label> : 
	<form:input path="user.name" size="30"/>
	<form:errors path="user.name" cssClass="errorMessage"/>
	
	<br/>
	<form:label path="user.age" cssErrorClass="errorMessage">나이</form:label> : 
	<form:input path="user.age" size="30"/>
	<form:errors path="user.age" cssClass="errorMessage"/>
